Skip to main content

Defence and Intelligence Solution

Defence and Intelligence overview:

The Defence and Intelligence solution contains the information on defence equipment revenue, also shows the market cap, earning, revenue related to the army equipment. The second part of the solution on nuclear warheads in countries from 1945 to 2020, it shows the trend of nuclear warheads in countries from 1945 to 2020.

The following document contains two dashboards as follows:

  1. Defence Equipment Revenue.
  2. Nuclear Warheads in countries from 1945 to 2020.

Following screens of the solutions as follows:

  1. Defence Equipment:

Docusaurus Slash Introduction

  1. Nuclear Warheads in countries from 1945 to 2020:

Docusaurus Slash Introduction

Data sources and datasets:

Here, we have used the CSV format data files to import data in OpnBI application. after adding the CSV files, we have added the respective datasets as follows:

  • User should have these files before we start making of dashboards: -
DatasourcesDatasets
defense contractor.csvDefenseContract.ds
nuclear_warheads_1945_2020.csvNuclearWarheads1945to2020.ds

List of components used in Defence Equipment Revenue solution

Docusaurus Slash Introduction

Sr.no.Widget typeWidget names
1Custom VisualizationDefence and equipment title
2Custom VisualizationNavigation menu bar
3Column chartRevenue of air equipment from countries
4Pie chartEarnings during the years from the aircraft companies
5Bar chartAircraft company's market cap
6Table WidgetDetail Information

Steps to create Defence Equipment Revenue dashboard:

Steps to create Defence Equipment Revenue dashboard:

  1. Login to OPNBI:

Docusaurus Slash Introduction

  1. Login using your credentials (UserID, Password), we are login as admin here.

Docusaurus Slash Introduction

  1. Now to add the dashboard in OpnBi, click on hamburger icon from top-left corner and get the menu bar, then click on (+) plus icon from Dashboard as shown in figure below:

Docusaurus Slash Introduction

  1. Add the name of the dashboard in Name textbox:

Docusaurus Slash Introduction

  1. After adding the name, click on the CREATE button from the create dashboard dialog box.
  2. When the dashboard gets added in the application it shows the redirect alert message.

Docusaurus Slash Introduction

note

The dashboard is added in the application, in the dashboard from the right-vertical menu you can add different types of widgets in the dashboard and the top-right corner provide the features like Embed dashboard, adding filter, Send mails, Dynamic messages, Mobile view/Tab screen view, Preview dashboard etc.

1. Defence Equipment Revenue title (Custom Visualization) of dashboard:

  • Let’s add the components in the credit card transaction dashboard, follow the steps below: Docusaurus Slash Introduction

  • Steps:

  1. Select the custom visualization from the right-vertical menu bar, as shown in the figure below: Docusaurus Slash Introduction

  2. After adding the custom visualization in dashboard, go to the HTML tab from the top-menu bar from its edit properties, as shown in the figure below: Docusaurus Slash Introduction

  3. Add the widget title in Name: Credit card Transactions title:

  4. Now, add the title as required in HTML tab:

<span>Defence Equipment Revenue</span>

Docusaurus Slash Introduction

  • click on the preview button to see the preview in widget, as shown in the figure below:
  1. Add the CSS style properties as shown in the figure below:
  • CSS style code,, you can copy the code and apply in your dashboards:
span{
font-family: Tahoma;
font-size: 5vw;
display: inherit;
margin: 0px;
padding: 0px;
text-shadow: 1px 1px #6275a9;
float: left;
}

Docusaurus Slash Introduction

note

After applying the CSS style, the title text gets white in color, to that title property, apply the widget style settings.

  1. Now click on Preview button to see the preview.

Docusaurus Slash Introduction

info

In this document, After the details we have provided the image to compare that with your output screen.

Widget style settings:

  1. Click on the widget settings as shown in the figure below:

Docusaurus Slash Introduction

  1. From the widget settings click on the widget box shadow properties:

Docusaurus Slash Introduction

  1. Add the Widget Box Shadow Properties using the toggle button of Box Shadow, as shown in the figure below:

Docusaurus Slash Introduction

  • Add below details to achieve this component:
Widget Box Shadow Properties
Box Shadow checkboxClick on the checkbox
Box Shadow Horizontal:1
Box Shadow Vertical:1
Box Shadow Color:#000000
Box Shadow Blur:5
Box Shadow Spread:1
  1. Add Widget Border and Border Radius using the Widget Border Properties,select the Border and Border Radius toggle button as shown in the figure below:

Docusaurus Slash Introduction

  • Add below details to achieve this component:
Widget Border Properties
Border checkbox:Click on border checkbox to enable the properties
Border Type:Solid
Border Width:2px 2px 2px 2px
Border Color:#000000
Border Radius:Click on border radius checkbox to enable the properties
Top Left Radius:10
Top Right Radius:10
Bottom Left Radius:10
Bottom Right Radius:10
  1. Remove the Title from the widget using the Title Properties, click on the title properties, as shown in the figure below:

Docusaurus Slash Introduction

  1. Click on the Show Title toggle button to uncheck the title, as shown in the figure below:

Docusaurus Slash Introduction

  1. Click on the Save and Exit button to save the component.

2. Revenue of air equipment from countries

Docusaurus Slash Introduction

  • Follow below steps to achive this component:
  1. Select the Chart widget form the right-vertical menu bar, as shown in the figure below:
Select the chart widgetSelect the column chart and clustered column chart
Docusaurus Slash IntroductionDocusaurus Slash Introduction
  1. Add the client script in column chart to add new value column:

  2. First Select the dataset: DefenseContract.ds then click on the client script checkbox:

  3. Go to the client script tab and add below code:

select replace(replace([Revenue],'$',''),'B','') as revenue,* from ?

Docusaurus Slash Introduction

  1. After adding the code click on the preview button and as the output column appears in the output box below, click the Update Metadata button then the Amount column will saved in the output as shown in the figure below:

Docusaurus Slash Introduction

  1. Add the chart dataset and setting details in Chart tab, as shown in the figure below:
General tab
Char tab in edit settings
Select chart: select Column chart
Select sub chart: select clustered chart
Widget Name: Revenue of air equipment from countries
Select Datasets(ds): DefenseContract
Category Axis: Country
Value Axis: revenue
Aggregation: Sum

Docusaurus Slash Introduction

  1. Add below details in formatting tab:

Add below details into the General Properties:

  • Click on Chart Sorting Based on value, Select the Sort Type: Ascending

Docusaurus Slash Introduction

  • Click on the Chart cursor menu and disable the Line X and Line Y

Docusaurus Slash Introduction

  • Add below details into the Category Axis Properties:

  • Go to Category font property and Category ticks add below properties:

Category Font Property
Color:#000000
Font Size:13
Font family:Tahoma
Font Weight:Normal
Opacity:Keep the opacity maximum
Category Ticks
disable the ticksTurn the toggle button off

Docusaurus Slash Introduction

  • Go to Category Title add below properties:
Category Title:Enable the title
Text:Countries
Font family:Tahoma
Font Size:14
Font Weight:Normal
Color:#000000

Docusaurus Slash Introduction

  1. Go to Value axis tab and add below details:
Click on Number format
Enable the Number format toggle button
Enable the Abbreviation

Docusaurus Slash Introduction

  1. Go to Value Font Property and add below details:
Color:#000000
Font Size:12
Font family:Tahoma
Font Weight:Normal
Opacity:Keep the opacity maximum
  1. Click on value ticks and value line:
Click on value ticks:Enable the value ticks
Click on the Value line:Enable the Value axis line

Docusaurus Slash Introduction

  • Click on the Value Title proeprties:
Enable the TitleClick on toggle button to turn it on
Enter text:Revenue
Font Family:Tahoma
Font size:14
Font Weight:Normal
Color:#000000

Docusaurus Slash Introduction

  1. Add below details into the Series Properties:
Series general Properties
Series Type:Column
Series Name:(keep this empty)
Column Name:70
Border Width:0
Border Color:-
Opacity:keep the opacity maximum

Docusaurus Slash Introduction

Series Value Labels Position
Enable the value labelsTurn the toggle button on
Position:Outer
Text:<div>$ ${point.y} B</div>
Rotation:0
Font Color:#000000
Background-Color:#ffffff
Opacity:Keep the opcity minimum
Font Size:11
Decimal Places:2
Padding Left:0.5
Padding Left:0

Docusaurus Slash Introduction

  1. Add widget settings, click on the Settings tab, as shown in the figure below:
  • Add Widget Box Shadow Properties as follows:
Widget Box Shadow Properties
Box Shadow checkboxClick on the checkbox
Box Shadow Horizontal:1
Box Shadow Vertical:1
Box Shadow Color:#000000
Box Shadow Blur:5
Box Shadow Spread:1

Docusaurus Slash Introduction

  • Add Widget Border Properties as follows:
Widget Border Properties
Border checkbox:Click on border checkbox to enable the properties
Border Type:None
Border Width:2px 2px 2px 2px
Border Color:#000000
Border Radius:Click on border radius checkbox to enable the properties
Top Left Radius:10
Top Right Radius:10
Bottom Left Radius:10
Bottom Right Radius:10

Docusaurus Slash Introduction

Title Properties
Show Title:Click on the Title checkbox to enable the properties
Title Move To:Left
Title Color:#000000
Title Font Size:15
Title Font Style:Normal
Title Font Family:Tahoma
Title Font Weight:Normal
Title Background Color:transparent
Padding:5px 5px 5px 5px

Docusaurus Slash Introduction

  1. Click on save and exit button to complete the component.

3. Earnings during the years from the aircraft companies

Docusaurus Slash Introduction

  1. Select the Chart widget form the right-vertical menubar, as shown in the figure below:
Select the chart widgetSelect the column chart and clustered column chart
Docusaurus Slash IntroductionDocusaurus Slash Introduction
  1. Add the client script in column chart to add new value column:

  2. First Select the dataset: DefenseContract.ds then click on the client script checkbox:

  3. Go to the client script tab and add below code:

select replace(replace([Earnings],'$',''),'B','') as earnings,* from ?

Docusaurus Slash Introduction

  1. After adding the code, click on the preview button and as the output column appears in the output box below, click the Update Metadata button then the Earnings will saved in the output as shown in the figure below:

Docusaurus Slash Introduction

  1. Add the chart dataset and setting details in Chart tab, as shown in the figure below:
General tab
Char tab in edit settings
Select chart: select Column chart
Select sub chart: select clustered chart
Widget Name: Earnings during the years from the aircraft companies
Select Datasets(ds): DefenseContract
Category Axis: Year
Value Axis: earnings
Aggregation: Sum

Docusaurus Slash Introduction

Add the chart dataset, formatting and setting details in Chart tab, as shown in the figure below:

Add below details in the General tab:

Select the color and theme property: Add below colors in the Color List:

#040507,#0c0f16,#1d2334,#252d43,#2d3752,#364161,#3e4c70,#46567f,#4e608e,#566a9d,#6275a9,#7182b1,#8090b9,#8f9dc1,#9eaac9,#adb7d2,#bcc4da,#cbd1e2,#dadeea,#e9ebf3,#f8f8fb

Docusaurus Slash Introduction

Add below details in the Series tab:

Click on Appearance properties: Add below details as follows:

Inner radius:60
Radius:80
Start Angle:0
End Angle:360

Docusaurus Slash Introduction

  • Click on the series labels and add below details:
Enable the series label
Smart Label:Enable the smart label
Color:#000000
Text:aiv_withValue
Font size:11
Font Weight:Normal

Docusaurus Slash Introduction

  • Click on the Dynamic Label and add below details:
Enable the Dynamic labels
Text:Total : ${values.value.sum} B
Horizontal Offset:50
Vertical Offset:50
Font size:12
Font Color:#000000
Background Colortransparent
  • Add Widget Style settings from below link:

Click on: Widget style settings

4. Aircraft company's market cap

Docusaurus Slash Introduction

  • Follow below steps to achive this component:
  1. Select the Chart widget form the right-vertical menu bar, as shown in the figure below:
Select the chart widgetSelect the column chart and clustered column chart
Docusaurus Slash IntroductionDocusaurus Slash Introduction
  1. Add the client script in column chart to add new value column:

  2. First Select the dataset: DefenseContract.ds then click on the client script checkbox:

  3. Go to the client script tab and add below code:

select replace(replace([Market cap],'$',''),'B','') as mc,* from ?

Docusaurus Slash Introduction

  1. After adding the code, click on the preview button and as the output column appears in the output box below, click the Update Metadata button then the Mc will saved in the output as shown in the figure below:

Docusaurus Slash Introduction

  1. Add the chart dataset and setting details in Chart tab, as shown in the figure below:
General tab
Char tab in edit settings
Select chart: select Bar chart
Select sub chart: select clustered chart
Widget Name: Aircraft company's market cap
Select Datasets(ds): DefenseContract
Category Axis: Name
Value Axis: mc
Aggregation: Sum

Docusaurus Slash Introduction

Add the formatting and setting details in Chart tab, as shown in the figure below:

Add below details in the General tab:

  • Select the color and theme property:

  • Add below colors in the Color List:

#040507,#0c0f16,#1d2334,#252d43,#2d3752,#364161,#3e4c70,#46567f,#4e608e,#566a9d,#6275a9,#7182b1,#8090b9,#8f9dc1,#9eaac9,#adb7d2,#bcc4da,#cbd1e2,#dadeea,#e9ebf3,#f8f8fb

Docusaurus Slash Introduction

  • Click on Chart Sorting Based on value, Select the Sort Type: Ascending

Docusaurus Slash Introduction

  • Click on the Chart cursor menu and disable the Line X and Line Y

Docusaurus Slash Introduction

Add below details in the Category Axis:

The category labelit should be enable
Select Alignment:Wrap
Maximum Label Text Width:40
Label Placement:Between Ticks
Label distance:-1

Docusaurus Slash Introduction

  • Click on Category font property and Category ticks add below properties:
Category Font Property
Color:#000000
Font Size:13
Font family:Tahoma
Font Weight:Normal
Opacity:Keep the opacity maximum
Category Ticks
disable the ticksTurn the toggle button off

Docusaurus Slash Introduction

  • Go to Category Title add below properties:
Category Title:Enable the title
Text:Companies
Font family:Tahoma
Font Size:14
Font Weight:Normal
Color:#000000

Docusaurus Slash Introduction

Add below details in the Value Axis tab:

Click on Number format
Enable the Number format toggle button
Enable the Abbreviation

Docusaurus Slash Introduction

  • Go to Value Font Property and add below details:
Color:#000000
Font Size:14
Font family:Tahoma
Font Weight:Normal
Opacity:Keep the opacity maximum

Docusaurus Slash Introduction

  • Click on value ticks and value line:
Click on value ticks:Enable the value ticks
Click on the Value line:Enable the Value axis line

Docusaurus Slash Introduction

  • Click on the Value Title proeprties:
Enable the TitleClick on toggle button to turn it on
Enter text:Market Cap
Font Family:Tahoma
Font size:14
Font Weight:Normal
Color:#000000

Docusaurus Slash Introduction

  • Add below details into the Series Properties:
Series general Properties
Series Type:Bar
Series Name:(keep this empty)
Column Name:70
Border Width:1
Border Color:-
Opacity:keep the opacity maximum

Docusaurus Slash Introduction

Series Value Labels Position
Enable the value labelsTurn the toggle button on
Position:Outer
Text:<div>$ ${point.y} B</div>
Rotation:0
Font Color:#000000
Background-Color:#ffffff
Opacity:Keep the opacity minimum
Font Size:12
Decimal Places:2
Padding Left:0.5
Padding Left:0

Docusaurus Slash Introduction

  • Add Widget Style settings from below link:

Click on: Widget style settings

5. Detail Information (Table widget)

Docusaurus Slash Introduction

  1. Select the Table widget from the right-vertical menubar.

  2. Select the Datasets(ds) as DefenseContract and Add Header Height: 25 and Row Height: 25 as shown in the figure below:

Docusaurus Slash Introduction

  1. Select all the columns from the available columns, To select all columns, Check the checkbox under the Dataset Column as shown in the figure below:

Docusaurus Slash Introduction

Docusaurus Slash Introduction

  1. Click on formatting tab, go to Miscellaneous Properties as shown in the figure below:
  • Add Below properties:
Miscellaneous Properties:
Pagination:Click on the pagination checkbox
Pagination Size:7
Text Wrap:Click on the text wrap checkbox
Theme:Content

Docusaurus Slash Introduction

  1. Click on Theme tab and add Table header and body properties as follows:
  • Add Theme: Font Family as Tahoma

Docusaurus Slash Introduction

Table header propertiesTable Body Properties
Header background color:#4c5d8aTable body background color:#ffffff
Header Font Color:#ffffffTable body font size:10
Header Font Size:12Row Border Color:rgba(76,93,138,0.39)
Header Column Border Color:#ffffffColumn Border Color:rgba(255,255,255,0.39)
Odd Row Background Color:#ffffff
Odd Row Font Color:#000000
Evan Row Background Color:#ffffff
Evan Row Font Color:#000000

Docusaurus Slash Introduction

  • Add Widget Style settings from below link:

Click on: Widget style settings

6. Menu bar

Docusaurus Slash Introduction

  1. Select the custom visualization from the right-vertical menubar, as shown in the figure below:

Docusaurus Slash Introduction

  1. After adding the custom visualization in dashboard, go to the HTML tab from the top-menu bar from its edit properties, as shown in the figure below:

Docusaurus Slash Introduction

  1. Add the widget title in Name: Menu bar.

  2. Now, add the title as required in HTML tab:

<span  class="CustomerID" id="id1" onclick="myFunction1()"> <u> Defence Equipment </u> </span>
<span class="CustomerID" id="id2" onclick="myFunction2()">Nuclear Warheads</span>

<script>
function myFunction1(){
var tab = new CustomEvent("aiv-change-tab", {
"detail": 0
});
window.parent.dispatchEvent(tab);
}

function myFunction2(){
var tab = new CustomEvent("aiv-change-tab", {
"detail": 1
});
window.parent.dispatchEvent(tab);
}
</script>

Docusaurus Slash Introduction

  • Click on the preview button to see the preview in widget, as shown in the figure below:
  1. Add the CSS style properties as shown in the figure below:
  • CSS style code, you can copy the code and apply in your dashboards:
body{
display: inherit;
text-align: center;
padding-top: 10px;
}

span{
color: #000000;
font-size: 5vw;
font-family: Tahoma;
vertical-align: middle;
cursor: pointer;
padding-right: 10px;
text-shadow: 1px 1px #d0cc71;
}

Docusaurus Slash Introduction

  • Add Widget Style settings from below link:

Click on: Widget style settings

Create new tab

  1. Click on the Plus icon near the tab, as shown in the figure below:

Docusaurus Slash Introduction

  1. Add name as Nuclear warheads in countries and click on Create Tab button as shown in the figure below:

Docusaurus Slash Introduction

Now, Follow the Nuclear warheads in countries from 1945 to 2020 Solution after this.

Docusaurus Slash Introduction